<?php
class ManualAddBookFormISBNOnly extends Zend_Form {
	
	public function init() {
		
		$this->setMethod("POST");
        $this->setName("ManualAddBookISBNOnly");
        
        $config = Zend_Registry::get("config");
        
        $element = new Zend_Form_Element_Hidden("baseurl");
        $element->setValue($config->baseurl);
        $this->addElement($element);
        
        $element = new Zend_Form_Element_Hidden("source");
        $element->setValue(BookSource::MANUAL);
        $this->addElement($element);
        
        $element = new Zend_Form_Element_Text("ISBN");
        $element->setAttrib("title","Type the ISBN here...");
        $element->setAttrib("class","defaultText");
        $element->addPrefixPath("My_Validator", "My/Validator/", "validate");
        $element->addValidator("ISBNLength", true);
        $this->addElement($element);
        
        $element = new Zend_Form_Element_Submit("check");
        $element->removeDecorator('Label');
        $this->addElement($element);
        
	}
}
?>